Integrand size = 25, antiderivative size = 114 \[ \int \frac {(c+d \sin (e+f x))^3}{3+3 \sin (e+f x)} \, dx=\frac {1}{2} d \left (2 c^2-2 c d+d^2\right ) x+\frac {2 d \left (c^2-3 c d+d^2\right ) \cos (e+f x)}{3 f}+\frac {(2 c-3 d) d^2 \cos (e+f x) \sin (e+f x)}{6 f}-\frac {(c-d) \cos (e+f x) (c+d \sin (e+f x))^2}{f (3+3 \sin (e+f x))} \]
[Out]
Time = 0.09 (sec) , antiderivative size = 121, normalized size of antiderivative = 1.06, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {2846, 2813} \[ \int \frac {(c+d \sin (e+f x))^3}{3+3 \sin (e+f x)} \, dx=\frac {2 d \left (c^2-3 c d+d^2\right ) \cos (e+f x)}{a f}+\frac {3 d x \left (2 c^2-2 c d+d^2\right )}{2 a}+\frac {d^2 (2 c-3 d) \sin (e+f x) \cos (e+f x)}{2 a f}-\frac {(c-d) \cos (e+f x) (c+d \sin (e+f x))^2}{f (a \sin (e+f x)+a)} \]
[In]
[Out]
Rule 2813
Rule 2846
Rubi steps \begin{align*} \text {integral}& = -\frac {(c-d) \cos (e+f x) (c+d \sin (e+f x))^2}{f (a+a \sin (e+f x))}-\frac {d \int (-a (3 c-2 d)+a (2 c-3 d) \sin (e+f x)) (c+d \sin (e+f x)) \, dx}{a^2} \\ & = \frac {3 d \left (2 c^2-2 c d+d^2\right ) x}{2 a}+\frac {2 d \left (c^2-3 c d+d^2\right ) \cos (e+f x)}{a f}+\frac {(2 c-3 d) d^2 \cos (e+f x) \sin (e+f x)}{2 a f}-\frac {(c-d) \cos (e+f x) (c+d \sin (e+f x))^2}{f (a+a \sin (e+f x))} \\ \end{align*}
Time = 0.48 (sec) , antiderivative size = 189, normalized size of antiderivative = 1.66 \[ \int \frac {(c+d \sin (e+f x))^3}{3+3 \sin (e+f x)} \, dx=\frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (d \cos \left (\frac {1}{2} (e+f x)\right ) \left (6 \left (2 c^2-2 c d+d^2\right ) (e+f x)-4 (3 c-d) d \cos (e+f x)-d^2 \sin (2 (e+f x))\right )+\sin \left (\frac {1}{2} (e+f x)\right ) \left (2 \left (4 c^3+6 c^2 d (-2+e+f x)-6 c d^2 (-2+e+f x)+d^3 (-4+3 e+3 f x)\right )-4 (3 c-d) d^2 \cos (e+f x)-d^3 \sin (2 (e+f x))\right )\right )}{12 f (1+\sin (e+f x))} \]
[In]
[Out]
Time = 0.72 (sec) , antiderivative size = 148, normalized size of antiderivative = 1.30
method | result | size |
derivativedivides | \(\frac {-\frac {2 \left (c^{3}-3 c^{2} d +3 c \,d^{2}-d^{3}\right )}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1}+2 d \left (\frac {\frac {\left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right ) d^{2}}{2}+\left (-3 c d +d^{2}\right ) \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-\frac {d^{2} \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{2}-3 c d +d^{2}}{\left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{2}}+\frac {3 \left (2 c^{2}-2 c d +d^{2}\right ) \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2}\right )}{f a}\) | \(148\) |
default | \(\frac {-\frac {2 \left (c^{3}-3 c^{2} d +3 c \,d^{2}-d^{3}\right )}{\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1}+2 d \left (\frac {\frac {\left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right ) d^{2}}{2}+\left (-3 c d +d^{2}\right ) \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )-\frac {d^{2} \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{2}-3 c d +d^{2}}{\left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{2}}+\frac {3 \left (2 c^{2}-2 c d +d^{2}\right ) \arctan \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2}\right )}{f a}\) | \(148\) |
parallelrisch | \(\frac {\left (\left (12 f x +28\right ) d^{3}+\left (-24 f x -84\right ) c \,d^{2}+24 c^{2} \left (f x +2\right ) d -16 c^{3}\right ) \cos \left (\frac {f x}{2}+\frac {e}{2}\right )+24 \left (\left (\left (\frac {f x}{2}+\frac {1}{6}\right ) d^{2}+c \left (-f x -\frac {1}{2}\right ) d +c^{2} f x \right ) \sin \left (\frac {f x}{2}+\frac {e}{2}\right )-\frac {d \left (\left (c -\frac {d}{4}\right ) \cos \left (\frac {3 f x}{2}+\frac {3 e}{2}\right )+\left (c -\frac {d}{4}\right ) \sin \left (\frac {3 f x}{2}+\frac {3 e}{2}\right )+\frac {d \left (\sin \left (\frac {5 f x}{2}+\frac {5 e}{2}\right )-\cos \left (\frac {5 f x}{2}+\frac {5 e}{2}\right )\right )}{12}\right )}{2}\right ) d}{8 \left (\sin \left (\frac {f x}{2}+\frac {e}{2}\right )+\cos \left (\frac {f x}{2}+\frac {e}{2}\right )\right ) a f}\) | \(177\) |
risch | \(\frac {3 d x \,c^{2}}{a}-\frac {3 d^{2} x c}{a}+\frac {3 d^{3} x}{2 a}-\frac {3 d^{2} {\mathrm e}^{i \left (f x +e \right )} c}{2 f a}+\frac {d^{3} {\mathrm e}^{i \left (f x +e \right )}}{2 f a}-\frac {3 d^{2} {\mathrm e}^{-i \left (f x +e \right )} c}{2 f a}+\frac {d^{3} {\mathrm e}^{-i \left (f x +e \right )}}{2 f a}-\frac {2 c^{3}}{f a \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )}+\frac {6 c^{2} d}{f a \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )}-\frac {6 c \,d^{2}}{f a \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )}+\frac {2 d^{3}}{f a \left ({\mathrm e}^{i \left (f x +e \right )}+i\right )}-\frac {d^{3} \sin \left (2 f x +2 e \right )}{4 f a}\) | \(235\) |
norman | \(\frac {\frac {-6 c \,d^{2}+d^{3}}{f a}+\frac {\left (-6 c \,d^{2}-d^{3}\right ) \left (\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f a}+\frac {\left (2 c^{3}-6 c^{2} d -2 d^{3}\right ) \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{f a}+\frac {\left (2 c^{3}-6 c^{2} d +6 c \,d^{2}-3 d^{3}\right ) \left (\tan ^{7}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f a}+\frac {\left (6 c^{3}-18 c^{2} d +6 c \,d^{2}-5 d^{3}\right ) \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f a}+\frac {3 d \left (2 c^{2}-2 c d +d^{2}\right ) x}{2 a}-\frac {12 c \,d^{2} \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f a}+\frac {3 \left (2 c^{3}-6 c^{2} d +4 c \,d^{2}-2 d^{3}\right ) \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{f a}+\frac {3 d \left (2 c^{2}-2 c d +d^{2}\right ) x \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{2 a}+\frac {9 d \left (2 c^{2}-2 c d +d^{2}\right ) x \left (\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a}+\frac {9 d \left (2 c^{2}-2 c d +d^{2}\right ) x \left (\tan ^{3}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a}+\frac {9 d \left (2 c^{2}-2 c d +d^{2}\right ) x \left (\tan ^{4}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a}+\frac {9 d \left (2 c^{2}-2 c d +d^{2}\right ) x \left (\tan ^{5}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a}+\frac {3 d \left (2 c^{2}-2 c d +d^{2}\right ) x \left (\tan ^{6}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a}+\frac {3 d \left (2 c^{2}-2 c d +d^{2}\right ) x \left (\tan ^{7}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )}{2 a}}{\left (1+\tan ^{2}\left (\frac {f x}{2}+\frac {e}{2}\right )\right )^{3} \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )}\) | \(493\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 236 vs. \(2 (117) = 234\).
Time = 0.28 (sec) , antiderivative size = 236, normalized size of antiderivative = 2.07 \[ \int \frac {(c+d \sin (e+f x))^3}{3+3 \sin (e+f x)} \, dx=\frac {d^{3} \cos \left (f x + e\right )^{3} - 2 \, c^{3} + 6 \, c^{2} d - 6 \, c d^{2} + 2 \, d^{3} + 3 \, {\left (2 \, c^{2} d - 2 \, c d^{2} + d^{3}\right )} f x - 2 \, {\left (3 \, c d^{2} - d^{3}\right )} \cos \left (f x + e\right )^{2} - {\left (2 \, c^{3} - 6 \, c^{2} d + 12 \, c d^{2} - 3 \, d^{3} - 3 \, {\left (2 \, c^{2} d - 2 \, c d^{2} + d^{3}\right )} f x\right )} \cos \left (f x + e\right ) - {\left (d^{3} \cos \left (f x + e\right )^{2} - 2 \, c^{3} + 6 \, c^{2} d - 6 \, c d^{2} + 2 \, d^{3} - 3 \, {\left (2 \, c^{2} d - 2 \, c d^{2} + d^{3}\right )} f x + {\left (6 \, c d^{2} - d^{3}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )}{2 \, {\left (a f \cos \left (f x + e\right ) + a f \sin \left (f x + e\right ) + a f\right )}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 3602 vs. \(2 (107) = 214\).
Time = 2.11 (sec) , antiderivative size = 3602, normalized size of antiderivative = 31.60 \[ \int \frac {(c+d \sin (e+f x))^3}{3+3 \sin (e+f x)} \, dx=\text {Too large to display} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 425 vs. \(2 (117) = 234\).
Time = 0.29 (sec) , antiderivative size = 425, normalized size of antiderivative = 3.73 \[ \int \frac {(c+d \sin (e+f x))^3}{3+3 \sin (e+f x)} \, dx=\frac {d^{3} {\left (\frac {\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {5 \, \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {3 \, \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {3 \, \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} + 4}{a + \frac {a \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {2 \, a \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {2 \, a \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {a \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} + \frac {a \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}} + \frac {3 \, \arctan \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )}{a}\right )} - 6 \, c d^{2} {\left (\frac {\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 2}{a + \frac {a \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {a \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {a \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}} + \frac {\arctan \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )}{a}\right )} + 6 \, c^{2} d {\left (\frac {\arctan \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )}{a} + \frac {1}{a + \frac {a \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}}\right )} - \frac {2 \, c^{3}}{a + \frac {a \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}}}{f} \]
[In]
[Out]
none
Time = 0.44 (sec) , antiderivative size = 165, normalized size of antiderivative = 1.45 \[ \int \frac {(c+d \sin (e+f x))^3}{3+3 \sin (e+f x)} \, dx=\frac {\frac {3 \, {\left (2 \, c^{2} d - 2 \, c d^{2} + d^{3}\right )} {\left (f x + e\right )}}{a} - \frac {4 \, {\left (c^{3} - 3 \, c^{2} d + 3 \, c d^{2} - d^{3}\right )}}{a {\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}} + \frac {2 \, {\left (d^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} - 6 \, c d^{2} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 2 \, d^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - d^{3} \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 6 \, c d^{2} + 2 \, d^{3}\right )}}{{\left (\tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} + 1\right )}^{2} a}}{2 \, f} \]
[In]
[Out]
Time = 9.20 (sec) , antiderivative size = 282, normalized size of antiderivative = 2.47 \[ \int \frac {(c+d \sin (e+f x))^3}{3+3 \sin (e+f x)} \, dx=\frac {3\,d\,\mathrm {atan}\left (\frac {3\,d\,\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (2\,c^2-2\,c\,d+d^2\right )}{6\,c^2\,d-6\,c\,d^2+3\,d^3}\right )\,\left (2\,c^2-2\,c\,d+d^2\right )}{a\,f}-\frac {\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )\,\left (6\,c\,d^2-d^3\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4\,\left (2\,c^3-6\,c^2\,d+6\,c\,d^2-3\,d^3\right )+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\,\left (4\,c^3-12\,c^2\,d+18\,c\,d^2-5\,d^3\right )+12\,c\,d^2-6\,c^2\,d+{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3\,\left (6\,c\,d^2-3\,d^3\right )+2\,c^3-4\,d^3}{f\,\left (a\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^5+a\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^4+2\,a\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3+2\,a\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+a\,\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )+a\right )} \]
[In]
[Out]